package com.ykt.vo;

/**
 * @author: long.hua
 * @date: 2016-02-17 15:33
 * @since 1.0
 */
public class OrderItemVo {

    private int id; // id
    private int orderId; // 订单id
    private int goodsId;// 商品ID
    private String goodsName; // 商品名称
    private int goodsCount;// 商品销售数量
    private double goodsPrice;// 商品销售单价
    private String goodsUnit;// 商品销售代为
    private double goodsAmount;// 商品总价

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String name) {
        this.goodsName = name;
    }

    public int getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(int goodsCount) {
        this.goodsCount = goodsCount;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public double getGoodsAmount() {
        return goodsAmount;
    }

    public void setGoodsAmount(double goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("OrderItemVo{");
        sb.append("id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", goodsId=").append(goodsId);
        sb.append(", goodsName='").append(goodsName).append('\'');
        sb.append(", goodsCount=").append(goodsCount);
        sb.append(", goodsPrice=").append(goodsPrice);
        sb.append(", goodsUnit='").append(goodsUnit).append('\'');
        sb.append(", goodsAmount=").append(goodsAmount);
        sb.append('}');
        return sb.toString();
    }
}
